package com.artisan.o2o.dao;

import org.apache.ibatis.annotations.Param;

import com.artisan.o2o.entity.LocalAuth;

public interface LocalAuthDao  {

    /**
     * @param localAuth
     * @return
     * @Title: insertLocalAuth
     * @Description: 增加本地账号
     * @return: int
     */
    int insertLocalAuth(LocalAuth localAuth);

    /**
     * @param userName
     * @param password
     * @Title: queryLocalByUserNameAndPwd
     * @Description: 根据用户名和密码查询用户
     * @return: LocalAuth
     */
    LocalAuth queryLocalByUserNameAndPwd(@Param("userName") String userName, @Param("password") String password);
}
